home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / libwmf / x.h < prev   
Encoding:
C/C++ Source or Header  |  2007-02-16  |  2.3 KB  |  91 lines

  1. /* libwmf (<libwmf/x.h>): library for wmf conversion
  2.    Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources
  3.  
  4.    The libwmf Library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public License as
  6.    published by the Free Software Foundation; either version 2 of the
  7.    License, or (at your option) any later version.
  8.  
  9.    The libwmf Library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.    Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public
  15.    License along with the libwmf Library; see the file COPYING.  If not,
  16.    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.    Boston, MA 02111-1307, USA.  */
  18.  
  19.  
  20. #ifndef LIBWMF_X_H
  21. #define LIBWMF_X_H
  22.  
  23. #include <X11/Xlib.h>
  24. #include <X11/X.h>
  25.  
  26. #include <libwmf/types.h>
  27.  
  28. typedef struct _wmf_x_t wmf_x_t;
  29.  
  30. struct _wmf_x_t
  31. {    /* other */
  32.  
  33.     char* display_name;
  34.     char* window_name;
  35.     char* icon_name;
  36.  
  37.     Display* display;
  38.  
  39.     Window root;
  40.     Window window;
  41.     Pixmap pixmap;
  42.     Pixmap hatch;
  43.     Pixmap brush;
  44.  
  45.     Visual*        visual;
  46.     int            depth;
  47.     int            class;
  48.     Colormap       colormap;
  49.     unsigned long  black;
  50.     unsigned long  white;
  51.     unsigned long* color;
  52.     struct
  53.     {    unsigned long red;
  54.         unsigned long green;
  55.         unsigned long blue;
  56.     } mask;
  57.  
  58.     GC gc;
  59.  
  60.     unsigned int x_width;
  61.     unsigned int x_height;
  62.  
  63.     wmfD_Rect bbox;
  64.  
  65.     unsigned long flags;
  66. };
  67.  
  68. #define WMF_X_GetData(Z) ((wmf_x_t*)(((wmfAPI*)Z)->device_data))
  69.  
  70. #define WMF_X_DISPLAY_OPEN  (1 << 0) /* Open display; sets WMF_X_DISPLAY_CLOSE *
  71.                                       * WMF_X_WINDOW_OPEN & WMF_X_PIXMAP_OPEN. */
  72. #define WMF_X_DISPLAY_CLOSE (1 << 1) /* Close display */
  73. #define WMF_X_WINDOW_OPEN   (1 << 2) /* Open window; sets WMF_X_WINDOW_CLOSE */
  74. #define WMF_X_WINDOW_CLOSE  (1 << 3) /* Close window */
  75. #define WMF_X_PIXMAP_OPEN   (1 << 4) /* Open pixmap; sets WMF_X_PIXMAP_CLOSE */
  76. #define WMF_X_PIXMAP_CLOSE  (1 << 5) /* Close pixmap */
  77.  
  78. #define WMF_X_CMAP_DESTROY  (1 << 7) /* Destroy colormap */
  79.  
  80. #ifdef __cplusplus
  81. extern "C" {
  82. #endif
  83.  
  84. extern void wmf_x_function (wmfAPI*);
  85.  
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89.  
  90. #endif /* ! LIBWMF_X_H */
  91.